
function sweattableDev(tabId,oldID){

	  ableTabEdit(oldID);
	  openTab(tabId);

}

function disableTabEdit(tabId){

	    td11="tab_"+tabId+"1";
		td22="tab_"+tabId+"2";
		td33="tab_"+tabId+"3";

		eval("document.all."+td11).className="tab_huiLeftBg2";
		eval("document.all."+td22).className="tab_huiBg2";
		eval("document.all."+td33).className="tab_huiRightBg2";
}

function ableTabEdit(tabId){

		td111="tab_"+tabId+"1";
		td222="tab_"+tabId+"2";
		td333="tab_"+tabId+"3";

		eval("document.all."+td111).className="tab_offLeftBg2";
		eval("document.all."+td222).className="tab_offBg2";
		eval("document.all."+td333).className="tab_offRightBg2";

}

function openTab(tabId){

		td11="tab_"+tabId+"1";
		td22="tab_"+tabId+"2";
		td33="tab_"+tabId+"3";

		eval("document.all."+td11).className="tab_onLeftBg2";
		eval("document.all."+td22).className="tab_onBg2";
		eval("document.all."+td33).className="tab_onRightBg2";
}

function isableTabEdit(tabId){

        td011="tab_"+tabId+"1";
		td022="tab_"+tabId+"2";
		td033="tab_"+tabId+"3";

		if(eval("document.all."+td022).className=="tab_huiBg2" || eval("document.all."+td022).className=="tab_onBg2"){
			return false
		} else {
			return true;
		}

}


function showTab(tabId) {

	document.getElementById("tab_show_hide_"+tabId).style.display="";
}
function hideTab(tabId) {

	document.getElementById("tab_show_hide_"+tabId).style.display="none";
}

function onClickTab(tabId){

	 ableTabEdit(tabId);

	  document.getElementById("onClick_"+tabId).fireEvent("onClick");

	 openTab(tabId);
}





